Skip to content

fix(sanic): Handle headers extraction after multidict update#715

Merged
GSVarsha merged 1 commit into
mainfrom
fix_sanic_failures
Apr 6, 2025
Merged

fix(sanic): Handle headers extraction after multidict update#715
GSVarsha merged 1 commit into
mainfrom
fix_sanic_failures

Conversation

@GSVarsha
Copy link
Copy Markdown
Contributor

@GSVarsha GSVarsha commented Apr 2, 2025

Overview

  • sanic.compat.Header contains __dict__ attribute but does not store the headers dictionary in it. Hence directly convert the CIMultiDict instance to dictionary using dict().

- `sanic.compat.Header` contains `__dict__` but does not store the dictionary in it

Signed-off-by: Varsha GS <varsha.gs@ibm.com>
@GSVarsha GSVarsha added this to the H1-2025 milestone Apr 2, 2025
@GSVarsha GSVarsha self-assigned this Apr 2, 2025
@GSVarsha GSVarsha requested a review from a team as a code owner April 2, 2025 09:11
Copy link
Copy Markdown
Contributor

@CagriYonca CagriYonca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Copy link
Copy Markdown
Member

@pvital pvital left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me.

@GSVarsha GSVarsha merged commit 1975b0a into main Apr 6, 2025
2 checks passed
@GSVarsha GSVarsha deleted the fix_sanic_failures branch April 6, 2025 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants